﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectCommonLibs.repository
{
    public class FileNameRepository
    {
        public static string getCurrentExportFileName(string rootDor)
        {
            var now = DateTime.Now;
            now = now.AddDays(-1);
            return String.Format(rootDor + "/{0:D}/{1:D2}/{2:D2}{3:D2}.xlsx",now.Year,now.Month,now.Day,now.Hour);
        }
        
    }
}
